﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Assignment2
{
    class Transition
    {
        protected Condition condition;
        public bool isTriggered() 
        {
            return condition.test();
        }

        protected State targetState;
        public State getTargetState()
        {
            return targetState;
        }

        protected List<Action> actions;
        public List<Action> getAction()
        {
            return actions;
        }

        public Transition()
        {
            actions = new List<Action>();
        }

        public virtual void updateMember()
        {
        }
    }
}
